fix: prevent rslib publish chunk collisions#423
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Collapse the two Rslib ESM builds into a single build so published artifacts share one chunk namespace.
This fixes the
agent-device@0.12.7global install/runtime failure caused by both Rslib compilations emitting numeric chunks such asdist/src/818.jsinto the same directory. Touched files: 1. Scope stayed within build tooling.Validation
pnpm check:toolingpnpm exec oxfmt --check rslib.config.tsnode bin/agent-device.mjs --helpnode dist/src/bin.js --versionnode --input-type=module -e "await import('./dist/src/index.js'); await import('./dist/src/commands/index.js'); await import('./dist/src/metro.js'); console.log('imports ok')"npm pack --ignore-scriptsand installed the tarball into a temporary prefix, then ran installedagent-device --helpKnown gap: the already-published
0.12.7tarball is immutable; this fix needs a new patch release.